package controller;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class CreateApplicationContextListener implements ServletContextListener {

	public CreateApplicationContextListener() {
	}

	public void contextInitialized(ServletContextEvent event) {
		System.out.println("Litener Called");


		//NhomsanphamDAO nspdao = new NhomsanphamDAO();
		//Header.lstDanhMuc = nspdao.getList();
		//Header header = new Header();
		//event.getServletContext().setAttribute("appheader", header);
	}

	public void contextDestroyed(ServletContextEvent arg0) {
	}

}
